#include "unionsystemgvl.h"

UnionSystemGvl::UnionSystemGvl(){
    int loop_i = 0;
    for(loop_i = 0; loop_i < 4096; loop_i++){
        OutGvlBool[loop_i].var = false;
        InGvlBool[loop_i].var = false;

        OutGvlInit[loop_i].var = 0;
        InGvlInit[loop_i].var = 0;

        OutGvlDouble[loop_i].var = 0;
        InGvlDouble[loop_i].var = 0;
    }
}

UnionSystemGvl::~UnionSystemGvl(){}

bool UnionSystemGvl::ReadGvlBool(int order,bool& var){
    var = this->InGvlBool[order].var;
    return 1;
}
bool UnionSystemGvl::WriteGvlBool(int order,bool var){
    this->OutGvlBool[order].var = var;
    return 1;
}
bool UnionSystemGvl::ReadGvlInt(int order,int& var){
    var = this->InGvlInit[order].var;
    return 1;
}
bool UnionSystemGvl::WriteGvlInt(int order,int var){
    this->OutGvlInit[order].var = var;
    return 1;
}
bool UnionSystemGvl::ReadGvlDouble(int order,double& var){
    var = this->InGvlDouble[order].var;
    return 1;
}
bool UnionSystemGvl::WriteGvlDouble(int order, double var){
    this->OutGvlDouble[order].var = var;
    return 1;
}
